package com.example.park2212.park

import android.graphics.Bitmap
import android.graphics.BitmapFactory
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Route
import com.example.lib_base.mvvm.BaseViewActivity
import com.example.park2212.R
import com.example.park2212.databinding.ActivityParkVractivityBinding
import com.google.vr.sdk.widgets.pano.VrPanoramaView
import dagger.hilt.android.AndroidEntryPoint
@Route(path = "/app/park/ParkVRActivity")
@AndroidEntryPoint
class ParkVRActivity : BaseViewActivity<ActivityParkVractivityBinding>() {

    override fun initView() {
        val options = VrPanoramaView.Options()
        options.inputType = VrPanoramaView.Options.TYPE_MONO
        binding.vr.loadImageFromBitmap(Bitmap.createBitmap(BitmapFactory.decodeResource(resources,R.drawable.vr_img)),options)
    }

    override fun initData() {

    }
}